import java.util.Objects;
import java.util.Random;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        System.out.println(2.0/5.0);
    }
    public static void main7(String[] args) {
        int a = 1234;
        System.out.println("个位数为"+a%10);
        System.out.println("十位数为"+a/10%10);
        System.out.println("百位数为"+a/100%10);
        System.out.println("千位数为"+a/1000);
    }
    public static void main6(String[] args) {//输出奇偶二进制序列
        int a = 120000;//00011101010011000000
        System.out.println("偶数列二进制序列为：");
        for(int i=31; i>=1; i-=2) {
            System.out.print((a>>>i)&1);
        }
        System.out.println( );
        System.out.println("奇数列二进制序列为：");
        for(int j=30; j>=0; j-=2) {
            System.out.print((a>>>j)&1);
        }
    }
    public static void main5(String[] args) {//输入密码
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入密码：");
        String str = scan.nextLine();
        int sum = 1;
        while(!Objects.equals(str, "abcdef")) {
            System.out.println("密码错误，请重新输入：");
            str = scan.nextLine();
            if(Objects.equals(str, "abcdef")) {
                break;
            }
            sum++;
            if(sum == 3) {//最多输入3次
                System.out.println("三次密码均输入错误，即将退出程序");
                break;
            }
        }
        if(Objects.equals(str, "abcdef")) {
            System.out.println("登录成功");
        }
        scan.close();
    }
    public static void main4(String[] args) {//猜数字
        Scanner scan = new Scanner(System.in);
        Random ran = new Random();
        int min = 1;
        int max = 100;
        int A = ran.nextInt(max - min+1)+min;//随机数
        System.out.println("请输入数字：");
        int a = scan.nextInt();
        while(true) {
            if(a > A) {
                System.out.println("输入数字大了！！");
                System.out.println("请输入数字：");
                a = scan.nextInt();
                continue;
            }
            if(a < A){
                System.out.println("输入数字小了！！");
                System.out.println("请输入数字：");
                a = scan.nextInt();
            }
            else {
                System.out.println("恭喜你猜对了！！");
                break;
            }
        }
    }
    public static void main3(String[] args) {//输出水仙花数
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入数字：");
        int n = scan.nextInt();
        int a = 1;
        for(a=1 ; a<=n; a++) {
            if(n < 100 || n>=1000) {
                System.out.println("输入有误！！");
                break;
            }
            if(((a/100)*(a/100)*(a/100)+((a/10)%10)*((a/10)%10)*((a/10)%10)+(a%10)*(a%10)*(a%10)) == a) {
                System.out.println(a);
            }
        }
        scan.close();
    }
    public static void main2(String[] args) {//判断素数
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入给定的一个数字：");
        int a = scan.nextInt();
        int k = 2;
        if(a <= 1) {
            System.out.println(a + "不是素数");
        }
        while(k < a) {
            if(a % k == 0) {
                System.out.println(a + "不是素数");
                break;
            }
            k++;
        }
        if(k >= a) {
            System.out.println(a+"是素数");
        }
        scan.close();
    }
    public static void main1(String[] args) {
        int a = 153;
        int sum = 0;
        sum = ((a/100)*(a/100)*(a/100)+((a/10)%10)*((a/10)%10)*((a/10)%10)+(a%10)*(a%10)*(a%10));
        System.out.println(sum);
    }
}
